//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.jn.erp.web.api.student.utils;


import com.jn.erp.web.api.student.enums.ResponseCodeEnums;

public class BizException extends RuntimeException {
    private final Integer code;

    public BizException(ResponseCodeEnums type) {
        super(type.getMsg());
        this.code = type.getCode();
    }

    public BizException(Integer code, String msg) {
        super(msg);
        this.code = code;
    }

    public BizException(String msg) {
        super(msg);
        this.code = ResponseCodeEnums.BIZ_ERROR.getCode();
    }

    public Integer getCode() {
        return this.code;
    }
}
